export interface SkuImageModel {
  id?: number;
  skuId?: number;
  imgName: string;
  imgUrl: string;
  // '1' 默认
  // '0'
  isDefault: string;
}

export type SkuImageListModel = SkuImageModel[];

export interface SkuAttrValueModel {
  id?: number;
  attrId: number;
  valueId: number;
  skuId?: number;
  attrName: string;
  valueName: string;
}

export type SkuAttrValueListModel = SkuAttrValueModel[];

export interface SkuSaleAttrValueModel {
  id?: number;
  saleAttrId: number;
  saleAttrName: string;
  saleAttrValueId: number;
  saleAttrValueName: string;
  skuId?: number;
  spuId: number;
}

export type SkuSaleAttrValueListModel = SkuSaleAttrValueModel[];

export interface SkuModel {
  id?: number;
  spuId?: number;
  price: number;
  skuName: string;
  skuDesc: string;
  weight: number;
  tmId: number | undefined;
  category3Id?: number;
  skuDefaultImg: string;
  // 1 在卖
  // 0 下架
  isSale?: number;
  skuImageList: SkuImageListModel;
  skuAttrValueList: SkuAttrValueListModel;
  skuSaleAttrValueList: SkuSaleAttrValueListModel;
}

export type SkuListModel = SkuModel[];

export interface GetSkuListResponseModel {
  records: SkuListModel;
  total: number;
}
